package com.gh.blog.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.gh.blog.entity.Article;
import com.gh.blog.entity.Category;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author Fawn
 * @Date 2020/9/10 12:07
 * @Version 1.0
 **/
@Getter
@Setter
public class ArticleDto implements Convert<ArticleDto, Article>, Serializable {


    private String id;
    /**
     * 文章标题
     */
    private String title;
    /**
     * 文章封面
     */
    private String cover;
    /**
     * 文章分类
     */
    private String category;
    /**
     * 文章浏览数
     */
    private Integer view;
    /**
     * 文章收藏数
     */
    private Integer like;
    /**
     * 文章内容html
     */
    private String content;
    /**
     * 文章内容Markdown
     */
    private String markdown;
    /**
     * 是否置顶
     */
    private Boolean top;
    /**
     * 是否公开
     */
    private Boolean publish;
    /**
     * 状态
     */
    private Boolean status;
    private String createBy;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    private String updateBy;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;
    private Boolean delFlag;

    private Category categoryObj;


}
